/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Optometrist Provider Codes</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * specDomain: S20349 (C-0-T19465-S20348-S20349-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getOptometristProviderCodes()
 * @model extendedMetaData="name='OptometristProviderCodes'"
 * @generated
 */
public enum OptometristProviderCodes implements Enumerator {
	/**
	 * The '<em><b>152W00000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_152W00000X_VALUE
	 * @generated
	 * @ordered
	 */
	_152W00000X(0, "_152W00000X", "152W00000X"),

	/**
	 * The '<em><b>152WC0802X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_152WC0802X_VALUE
	 * @generated
	 * @ordered
	 */
	_152WC0802X(1, "_152WC0802X", "152WC0802X"),

	/**
	 * The '<em><b>152WL0500X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_152WL0500X_VALUE
	 * @generated
	 * @ordered
	 */
	_152WL0500X(2, "_152WL0500X", "152WL0500X"),

	/**
	 * The '<em><b>152WX0102X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_152WX0102X_VALUE
	 * @generated
	 * @ordered
	 */
	_152WX0102X(3, "_152WX0102X", "152WX0102X"),

	/**
	 * The '<em><b>152WP0200X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_152WP0200X_VALUE
	 * @generated
	 * @ordered
	 */
	_152WP0200X(4, "_152WP0200X", "152WP0200X"),

	/**
	 * The '<em><b>152WS0006X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_152WS0006X_VALUE
	 * @generated
	 * @ordered
	 */
	_152WS0006X(5, "_152WS0006X", "152WS0006X"),

	/**
	 * The '<em><b>152WV0400X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_152WV0400X_VALUE
	 * @generated
	 * @ordered
	 */
	_152WV0400X(6, "_152WV0400X", "152WV0400X");

	/**
	 * The '<em><b>152W00000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>152W00000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_152W00000X
	 * @model literal="152W00000X"
	 * @generated
	 * @ordered
	 */
	public static final int _152W00000X_VALUE = 0;

	/**
	 * The '<em><b>152WC0802X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>152WC0802X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_152WC0802X
	 * @model literal="152WC0802X"
	 * @generated
	 * @ordered
	 */
	public static final int _152WC0802X_VALUE = 1;

	/**
	 * The '<em><b>152WL0500X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>152WL0500X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_152WL0500X
	 * @model literal="152WL0500X"
	 * @generated
	 * @ordered
	 */
	public static final int _152WL0500X_VALUE = 2;

	/**
	 * The '<em><b>152WX0102X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>152WX0102X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_152WX0102X
	 * @model literal="152WX0102X"
	 * @generated
	 * @ordered
	 */
	public static final int _152WX0102X_VALUE = 3;

	/**
	 * The '<em><b>152WP0200X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>152WP0200X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_152WP0200X
	 * @model literal="152WP0200X"
	 * @generated
	 * @ordered
	 */
	public static final int _152WP0200X_VALUE = 4;

	/**
	 * The '<em><b>152WS0006X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>152WS0006X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_152WS0006X
	 * @model literal="152WS0006X"
	 * @generated
	 * @ordered
	 */
	public static final int _152WS0006X_VALUE = 5;

	/**
	 * The '<em><b>152WV0400X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>152WV0400X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_152WV0400X
	 * @model literal="152WV0400X"
	 * @generated
	 * @ordered
	 */
	public static final int _152WV0400X_VALUE = 6;

	/**
	 * An array of all the '<em><b>Optometrist Provider Codes</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final OptometristProviderCodes[] VALUES_ARRAY =
		new OptometristProviderCodes[] {
			_152W00000X,
			_152WC0802X,
			_152WL0500X,
			_152WX0102X,
			_152WP0200X,
			_152WS0006X,
			_152WV0400X,
		};

	/**
	 * A public read-only list of all the '<em><b>Optometrist Provider Codes</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<OptometristProviderCodes> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Optometrist Provider Codes</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static OptometristProviderCodes get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			OptometristProviderCodes result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Optometrist Provider Codes</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static OptometristProviderCodes getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			OptometristProviderCodes result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Optometrist Provider Codes</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static OptometristProviderCodes get(int value) {
		switch (value) {
			case _152W00000X_VALUE: return _152W00000X;
			case _152WC0802X_VALUE: return _152WC0802X;
			case _152WL0500X_VALUE: return _152WL0500X;
			case _152WX0102X_VALUE: return _152WX0102X;
			case _152WP0200X_VALUE: return _152WP0200X;
			case _152WS0006X_VALUE: return _152WS0006X;
			case _152WV0400X_VALUE: return _152WV0400X;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private OptometristProviderCodes(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //OptometristProviderCodes
